package com.xbongbong.saas.enums.dictionary;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * @Author: wujian
 * @Description: 退货单退款状态枚举
 * @Date: 下午10:26 2021/1/28
 * @Param:
 * @return:
 **/
@Getter
public enum DrawbackStatusEnum {
    //未退款
    NO_REFUND("1","enum.returnDrawbackStatus.name.no_refund","NoRefund"),
    //部分退款
    PART_REFUND("2","enum.returnDrawbackStatus.name.part_refund","partRefund"),
    //已退款
    ALREADY_REFUND("3","enum.returnDrawbackStatus.name.already_refund","AlreadyRefund"),
    ;
    private String code;
    private String name;
    private String attr;

    DrawbackStatusEnum(String code, String name, String attr) {
        this.code = code;
        this.name = name;
        this.attr = attr;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
